const { Schema, model } = require('mongoose');
const pointsSchema = new Schema({
    point: String,
}, { versionKey: false });
// versionKey: false 去掉数据库的-v
// 2. 设置数据模型，同时连接数据集合，pointsModel可以任意命名
pointsModel = model('pointsModel', pointsSchema, 'points');
//暴露数据
module.exports.pointsModel = pointsModel;